A custom slot, implementable by external code. More...
Public Member Functions | |
ShaderInstanceCustomSlot () | |
virtual | ~ShaderInstanceCustomSlot () |
nkMemory::StringView | getTypeName () const |
nkMemory::StringView | getDataIdName () const |
void | setDataIdName (const nkMemory::StringView &value) |
virtual unsigned int | getDataByteSize ()=0 |
virtual void | fillDataBuffer (Entity *caller, void *buffer)=0 |
A custom slot, implementable by external code.
nkGraphics::ShaderInstanceCustomSlot::ShaderInstanceCustomSlot | ( | ) |
Constructor.
|
virtual |
Destructor.
nkMemory::StringView nkGraphics::ShaderInstanceCustomSlot::getTypeName | ( | ) | const |
nkMemory::StringView nkGraphics::ShaderInstanceCustomSlot::getDataIdName | ( | ) | const |
void nkGraphics::ShaderInstanceCustomSlot::setDataIdName | ( | const nkMemory::StringView & | value | ) |
Sets the data id name to use for the data. This has to correspond to the semantic name declared in the shader.
value | The data id name to set. |
|
pure virtual |
Implemented in nkGraphics::ShaderInstanceCustomDummySlot.
|
pure virtual |
Fills the buffer for one entry.
caller | The entity to fill the data for. |
buffer | The spot in the memory buffer to fill. |
Implemented in nkGraphics::ShaderInstanceCustomDummySlot.